package com.rescue.annotation;

import com.rescue.enumeration.OperationFrequencyType;

import java.lang.annotation.*;

/**
 * 自定义注解，用于标注某个方法需要进行功能字段自动填充
 */
@Documented
@Inherited
@Target({ElementType.METHOD,ElementType.TYPE})//作用在方法上
@Retention(RetentionPolicy.RUNTIME)//运行时生效
public @interface GlobalInterceptor {
    /**
     * 效验频次
     * @return
     */
    OperationFrequencyType frequency() default OperationFrequencyType.NO_CHECK;
}
